package com.team233.zuccecho.repository;

import com.team233.zuccecho.Bean.Course;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface CourseRepository extends JpaRepository<Course,Integer> {
    @Query(value="select * from course where course_name=?1",nativeQuery = true)
    Course findByName(String name);
}
